package com.interview.item.javabase.reflection;

/**
 * @author: zhangxiaohu@souche.com
 * @date: 2022/9/19
 */
public class Person {
    private String name;
    private int age = 10;

    public int age1 = 11;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void say() {
        System.out.println("Person 公有");
    }
    public int say(int one,int two) {
        System.out.println("Person 私有");
        return one + two;
    }

    private int say1(int one,int two) {
        System.out.println("Person 私有");
        return one + two;
    }
}
